# 通过占位的形式完成拼接
name = "hzh"
hobby = "羽毛球"
print("我叫%s我喜欢打%s"%(name,hobby))

# 通过占位的形式完成数字和字符串的拼接
class_num = 57
avg_salary = 16781
massage = "Python大数据技术，北京%s期，毕业平均薪资: %s" %(class_num,avg_salary)
print(massage)

# 其他占位符
name = "传智播客"
setup_year = 2006
stock_price = 19.99
massage = ("%s, 成立于:%d,我今天的股价是:%f" %(name,setup_year,stock_price))
print(massage)